package com.tebiecloud.mpweixin.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户资金记录表
 * @author tebie
 * @date 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class MpweixinUserFlow extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mpweixin_user_flow_id", type = IdType.ID_WORKER)
    private Long mpweixinUserFlowId;

    /**
     * 账号关联的id
     */
    private Long userId;

    /**
     * 关联的订单id或者提现id
     */
    private Long number;

    /**
     * 本次交易资金
     */
    private Integer transactionFunds;

    /**
     * 原有的资金
     */
    private Integer residueFunds;

    /**
     * 交易后的资金
     */
    private Integer futureFunds;

    /**
     * 交易类型：1，分享返利，2、自购返现，3、余额支付，4、提现，5、订单关闭退返，6、退款退返
     */
    private Integer transactionType;

}
